<cfset str = "Hello ColdFusion----------------">
<br>
<cfoutput>#str#</cfoutput>


<br/>
<cfif isDefined("str")>
	<cfoutput>#str#</cfoutput>
    <img src="GX_wallpaper_1920x1080.jpg" alt="The picture is not found"/>
    <!--- <cfimage source="GX_wallpaper_1920x1080.jpg" action="crop" top="10" left="10" width="200" height="200"> --->
    <br>
    <cfoutput> -------------------is true</cfoutput>
    <br>
<cfelse>
    <img src="1.jpg" alt="The picture is not found"/>
	<cfoutput>--------------------is false</cfoutput>
    <br>
</cfif>

<!--- 定义一个数组 --->
<cfset arr = [1,2,3,4,5,6,7,8,9,10]>
<cfif isArray(arr)>
    <cfoutput>is array<br></cfoutput>
    <cfoutput>
        <cfloop array="#arr#" index="i">
            #i#<br>
        </cfloop>
    </cfoutput>
<cfelse>
    <cfoutput>is not array<br></cfoutput>
</cfif>

<cfset arr2=['apple','banana','orange22']>
<cfif isArray(arr2) is true>
    <cfoutput>is string array<br></cfoutput>
    <p>string array</p>
    <p>string array</p>
    <p>string array</p>
    <p>string array</p>
    <cfoutput>
        <cfloop array="#arr2#" index="i">
            #i#<br>
        </cfloop>
    </cfoutput>
<cfelse>
    <cfoutput>is not array</cfoutput>
</cfif>
